import os

# 腾讯发送验证码
TX_SMS_ID = 'AKIDxjGakeIfmeFamiO1PedMq56rNfqqbIly'
TX_SMS_KEY = os.getenv('TX_SMS_KEY')
TX_SMS_TEMPLATE_ID = "1675402"
TX_SMS_SDK_APP_ID = "1400792152"
TX_SMS_SIGN_NAME = "hkwJsxl公众号"
# 验证码缓存格式(手机号占位符)
TX_SMS_CODE = 'TX_SMS_CODE_%s'
# 过期时间（整数）
TX_SMS_CODE_EXPIRATION = '3'

# 缓存
# 首页轮播图
HOME_BANNER_LIST = ''
HOME_BANNER_EXPIRATION = 60 * 60 * 24

# 首页轮播图返回条数
HOME_BANNER_COUNT = 4

# 路径和端口号
BACKEND_URL = 'http://127.0.0.1:8000'
REDIS_HOST = '127.0.0.1'
REDIS_PORT = '6379'
MYSQL_HOST = '127.0.0.1'
MYSQL_PORT = '3306'
MYSQL_DB_USER = 'luffyapi'
MYSQL_DB_NAME = 'luffyapi'

# 前台基URL
FRONT_END_URL = 'http://127.0.0.1:8080'

# 阿里支付
ALI_SERVER_URL = 'https://openapi.alipaydev.com/gateway.do'
ALI_APP_ID = '2021000122613847'
ALI_APP_PRIVATE_KEY = 'MIIEpAIBAAKCAQEAk5pvzwJUdZI1R3r9qf4Eo5XD6ixe53tId4ERr2axZbmjWsVlv1nMY5kQcBxa3MVWMC6ps3FPiHlSIOwplstgEZrN4YYIPIzrL8ln6FlTHzSR14RLJnjcjsG+nIZHrUjBzm1VZWXDq4aqZrHp/2qTbTJ/T261cZkAUCyzUEPt4jfFVAfNEJS8DjUlaAN6Ho+LBbo/znhJ46zyxg1lkTOf9xcaIne9rWYEuSCJQ/3dmbrV9o4iVdHN2QOmMpq/00KVUm3vC2u8kYYj1sDuN3uDIUPjP+rDd9iu9Az5DcHInNm6CohxDa/sdfQhB/TKzdREVxZV43uzuzaPzgp/47OHgQIDAQABAoIBAEUlKs2R7Njq9jSXJC+3RJsRdKbFxGuyMB9zgkJl3CKoVSMXp/N88KeTs8ShM9uKQjbuFSdvp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l9dBJ/qhsmmQqpAh+xqtkpxI5G+oYm/31OGiQ68UhDqWORVhtDr4FjQmA=='
ALI_ALIPAY_PUBLIC_KEY = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsXIPhjMy0pTyq6vG9Dkva9pzzL7mMPaxY6IXEx89fJulG052qYCCbmB5PrqKefSGJk2N++Am3a0vhyzUURQnQGH4vruCZX1iWuzw3QwlZuuedxFM/uciXUZELe4Vin6qW59thx2slna11FayGbM5jKVmR1g8HJvxECFuMxYIZC5tvaJbsbJbAPYESWkuAh1M1nspJmP3LuqXCLpeLXOYpdhn+6lTtGbArvzuXyrdbZurnqWTb3Q8M9nFZkKwuLKkZCeO8Qs3iy7mSzayNsvwJ8kf/SooOMRIAe9I5lqIbECfV2+VzsfXSXahYvpL1osQTQOgjAT13dZvM9Hfyt6d/wIDAQAB'
ALI_GATEWAY_URL = 'https://openapi.alipaydev.com/gateway.do?'
# 卖家id
ALI_SELLER_ID = '2088621995167585'
# 支付宝同步异步回调接口配置
# 后台异步回调接口
NOTIFY_URL = BACKEND_URL + "/order/pay/success/"
# 前台同步回调接口
RETURN_URL = FRONT_END_URL + "/pay/success"

# jwt token过期时间
TOKEN_EXPIRATION = ''

# 邮箱注册验证

EMAIL_SECRET_KEY = '邮箱验证,我说的杀人犯是高启强啊.'
EMAIL_VERIFY_URL = '%s/user/register/email/' % BACKEND_URL
